using System;
using System.Collections.Generic;
using System.Text;
using Colman.Rpg.Npc;

namespace Colman.Rpg.Messaging
{
    /// <summary>
    /// Represents a response from the server, containing a generated NPC <see cref="World"/>.
    /// </summary>
    [Serializable]
    public class CreateWorldResponse : ResponseMessage
    {
        /// <summary>
        /// Creates a new instance of <see cref="CreateWorldResponse" />.
        /// </summary>
        /// <param name="createdWorld">The world created by the server.</param>
        public CreateWorldResponse(World createdWorld)
            : base(ResponseDestination.Requester)
        {
            this.createdWorld = createdWorld;
        }

        #region World CreatedWorld { get; } (createdWorld)
        private World createdWorld;

        /// <summary>
        /// Gets the world the server has created.
        /// </summary>
        public World CreatedWorld
        {
            [System.Diagnostics.DebuggerStepThrough]
            get
            {
                return this.createdWorld;
            }
        }
        #endregion
    }
}
